Skip to main content

Add a profile photo

PUT /api/v1/users/:userId/profile-photo

Description

Add a profile photo for a user.

Headers:

  • Content-Type: application/json
  • Authorization: Bearer {{bearerToken}}

Path Parameters:

  • userId (Required): User ID

  • URL: /api/v1/users/:userId/profile-photo

  • Response: The response is "OK" with a code of 200.

/api/v1/users/:userId/profile-photo

Headers

Content-TypeValue
Content-Typeapplication/json

Body (raw)

{
"photo": "<string>",
"userId": "<string>"
}

🔑 Authentication bearer

ParamvalueType
tokenbearerTokenstring

Response: 200

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /api/v1/users/:userId/profile-photo \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!